package com.wang.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Classname PayInfo
 * @Description TODO
 * @Date 2024/10/18 16:00
 * @Created by pc
 */
@Data
@ToString
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("支付信息实体类")
public class PayInfo {
    @ApiModelProperty("商品id")
    private Integer id;
    @ApiModelProperty("'用户id'")
    private Integer userId;
    @ApiModelProperty("'订单号'")
    private Long orderNo;
    @ApiModelProperty("支付平台:1-支付宝,2-微信")
    private Integer payPlatform;
    @ApiModelProperty("'支付宝支付流水号'")
    private String platformNumber;
    @ApiModelProperty("'支付宝支付状态'")
    private String platformStatus;
    @ApiModelProperty("创建时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date createTime;//创建时间
    @ApiModelProperty("最后一次更新时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd")
    private Date updateTime;//最后一次更新时间
}
